#include "composite.h"

int main(){

    std::shared_ptr<FileSystem> fileDir = std::make_shared<Dir>("root");

    std::shared_ptr<FileSystem> homeDir = std::make_shared<Dir>("home");
    fileDir->Add(homeDir);
    std::shared_ptr<FileSystem> file1 = std::make_shared<File>("file1");
    homeDir->Add(file1);
    std::shared_ptr<FileSystem> file2 = std::make_shared<File>("file2");
    homeDir->Add(file2);
    std::shared_ptr<FileSystem> file3 = std::make_shared<File>("file3");
    homeDir->Add(file3);
    
    fileDir->showName(0);


    return 0;
}